<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="CYW">
    <title></title>
    <style>
        body{
            margin: 0;
            background-color: #999;
            position: relative;
        }
        *{
            box-sizing: border-box;
        }

        .box-top{
            padding: 10px;
            margin:50px auto;
            margin-bottom: 10px;
            text-align: center;
            width: 400px;
            height:430px;
            background-color: white;
            position: relative;
        }
        .orange-ceng{
            width: 400px;
            height: 430px;
            border:5px solid orange;
            position: absolute;
            top: 0;
            left:0;
            display: none;
        }
  
        ul{
            width: 400px;
            margin: 0 auto;
            padding: 0;
            list-style: none;
            display: flex;
            background-color: white;
            
        }
        ul li{
            width: 170px;
            height: 170px;
            margin: 0 10px;  
            position: relative; 
            overflow: hidden; 
        }
        .box-buttom{
            padding: 10px;
        }
        .ceng{
            width: 170px;  
            height: 170px;  
            background-color: black;
            opacity: 0;
            position: absolute;
             top: 0;    
        }
        .box-buttom p{
            color: white;
            width: 170px;
            height: 170px;
            position: absolute;
            text-align: center;
            line-height: 170px;
            top: 0px;
            left:-170px; 
        }
    
    </style>
</head>
<body>
        <div class="box-top">
            <section><img src="./img2/遮罩1.jpg" alt=""></section>
            <section>11111111111111111111111111111111111</section>
            <section class="orange-ceng"></section>
        </div>

        <ul class="box-buttom">
            <li><img src="./img2/遮罩2.jpg" alt=""><div class="ceng"></div><p>品牌旗舰店</p></li>
            <li><img src="./img2/遮罩3.jpg" alt=""><div class="ceng"></div><p>品牌旗舰店</p></li>
        </ul>
    
 <script src="jquery.js"></script>
</body>
</html>
<script>
   $('.box-top').hover(function(){
       $(this).find('.orange-ceng').stop().fadeIn(300);

   },function(){
      $(this).find('.orange-ceng').stop().fadeOut(600);
   });


// 小图遮罩层
$('li').hover(function(){
 $(this).find('.ceng').stop().fadeTo(500,0.5);
  $(this).find('p').stop().animate({left:0},500);
},function(){
 $(this).find('.ceng').stop().fadeTo(500,0);
 $(this).find('p').stop().animate({left:-170},500);
});

</script>